import { GetCategory } from '@/api/news'

const actions = {
  getInfoCategory (content, requestData) {
    return new Promise((resolve, reject) => {
      GetCategory({}).then((response) => {
        let data = response.data.data.data
        resolve(data)
      }).catch(error => {
        reject(error)
      })
    })
  }
}

export default {
  namespaced: true,
  actions
}
